home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / T_BCINFO.ARJ / TI657.ASC < prev    next >
Text File  |  1992-02-25  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C                              NUMBER  :  657
  9.   VERSION  :  2.0
  10.        OS  :  PC DOS
  11.      DATE  :  February 25, 1992                        PAGE  :  1/1
  12.  
  13.     TITLE  :  Linking a Windows Application from the Command Line
  14.  
  15.  
  16.  
  17.  
  18.   The syntax for TLINK is:
  19.  
  20.           TLINK objfiles,exefile,mapfile,libfiles,deffile
  21.  
  22.   You  must  always use the /Tw option  to  create  a  Windows  EXE
  23.   or  DLL.   Use /Twe or /Twd  to  specifically  create  a  Windows
  24.   EXE  or  DLL,  respectively.  The  last   two   options  override
  25.   specifications in the DEF file.
  26.  
  27.   There is a specific  startup  module  to  use with Windows EXE's;
  28.   it is C0Wx.OBJ.  For DLL's it is C0Dx.OBJ.
  29.  
  30.   The  required  libraries  are:  IMPORT.LIB, CWINx.LIB,  MATHx.LIB
  31.   and  Cx.LIB.  For DLL's the Windows library  for  the  small  and
  32.   compact models is  CWINC.LIB  and  for  medium  and  large  it is
  33.   CWINL.LIB.  The last three  libraries,  CWINx.LIB,  MATHx.LIB and
  34.   Cx.LIB, must always be in this exact order.
  35.  
  36.   NOTE:  The  libraries  EMU.LIB and FP87.LIB will  NEVER  be  used
  37.   in a Windows program.  BC++ will take care of  the floating-point
  38.   math automatically.
  39.  
  40.   You  will  then  have  to  run  the  Resource Compiler  to  fully
  41.   create a Windows EXE.
  42.  
  43.   For more information,  consult  pages 115-130 in the User's Guide
  44.   on linking for Windows.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.